import Vue from '../vue'
import store from '../vuex/store'
import GaoList from '../component/gao/gao-list/gao-list.vue'
import GaoNew from '../component/gao/gao-new/gao-new.vue'
import GaoSwap from '../component/gao/gao-swap/gao-swap.vue'
import loginCheck from '../util/login-check'
import { alert } from 'vue-strap'

new Vue({
  el: 'body',
  components: {
    'vue-gao-list': GaoList,
    'vue-gao-new': GaoNew,
    'vue-gao-swap': GaoSwap,
    'vue-alert-msg': alert
  },
  store,
  vuex: {
    getters: {
      msg: state => state.msg
    }
  },
  created() {
    loginCheck(this)
  }
})
